print('www','baidu','com',sep='.')
# 字符创格式化
print('我叫%s我今年%d岁了'%('小明',10))

my_value = 1.001415926535

# 最小宽度为8，小数点后保留3位
print("my_value is: %8.3f" % my_value)

the_name = "Charlie"
# 只保留3个字符，输出Cha
print("the name is: %.3s" % the_name)

# 字符串格式化，参数可以不按顺序
print('i am {1},and i am {0} years old!'.format('10','ming'))
